import 'package:cbec_app/components/common/recommend.dart';
import 'package:cbec_app/pages/home/controller/home_ctr.dart';
import 'package:cbec_app/pages/home/view/decoration_renderer.dart';
import 'package:flutter/material.dart';
import 'package:get/get_state_manager/src/simple/get_state.dart';
import 'package:get/get_state_manager/src/simple/get_view.dart';

///微页面
class MicroPage extends GetView<HomeController> {
  final bool? isShowRecommend;
  const MicroPage({
    super.key,
    this.isShowRecommend = false,
  });

  @override
  Widget build(context) {
    return GetBuilder<HomeController>(
      builder: (controller) {
        return Column(
          children: [
            const DecorationRenderer(),
            isShowRecommend == true ? const Recommend(location: "MemberCenter", isShowTitle: false) : const SizedBox.shrink(),
          ],
        );
      },
    );
  }
}
